<template>
  <div class="main3 animate__animated animate__fadeInRightBig">
    <div class="title">公司概况</div>
    <div class="item">
      <span>贵公司名称</span>
      <el-input placeholder="公司名称" v-model="company.name" />
    </div>
    <div class="item">
      <span>业务方向</span>
      <el-select v-model="company.direction" class="m-2" placeholder="信息技术和编程" size="large">
        <el-option v-for="item in directionArr" :key="item.value" :label="item.label" :value="item.value" />
      </el-select>
    </div>
    <div class="item">
      <span>你的团队有多少人?</span>
      <el-radio-group v-model="company.size" size="large" class="radio_group">
        <el-radio-button :label="item.value" v-for="item in rsArr" :key="item.value">{{ item.label }}</el-radio-button>
      </el-radio-group>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { ISelect, ICompany } from '@/types/element';

const { company } = defineProps<{ company: ICompany }>()


const rsArr = [{
  value: "1",
  label: "只有我",
}, {
  value: "5",
  label: "2-5",
}, {
  value: "10",
  label: "6-10",
}, {
  value: "20",
  label: "11-20",
}, {
  value: "40",
  label: "21-40",
}, {
  value: "50",
  label: "41-50",
}, {
  value: "100",
  label: "51-100",
}, {
  value: "500",
  label: "101-500",
}]

const directionArr = ref<ISelect[]>([{ value: "1", label: "IT工程师" }, { value: "2", label: "前端工程师" }])

</script>

<style lang="scss" scoped>
.main3 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: -100px;

  .title {
    font-weight: bold;
    font-size: 25px;
  }

  .item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #747d8c;
    width: 400px;
    gap: 10px;
    text-align: left;

    >span {
      font-size: 14px;
    }

    .radio_group {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      text-align: center;

      :deep(.el-radio-button__inner) {
        border-radius: 10px;
        width: 80px;
      }
    }
  }
}
</style>